package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class AgreementModel implements Parcelable {

    /**
     * 图片地址
     */
    @SerializedName("user_agreement_content")
    private String userAgreement;

    /**
     * 跳转网页地址
     */
    @SerializedName("privacy_agreement_content")
    private String privacyAgreement;

    public String getUserAgreement() {
        return userAgreement;
    }

    public void setUserAgreement(String userAgreement) {
        this.userAgreement = userAgreement;
    }

    public String getPrivacyAgreement() {
        return privacyAgreement;
    }

    public void setPrivacyAgreement(String privacyAgreement) {
        this.privacyAgreement = privacyAgreement;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.userAgreement);
        dest.writeString(this.privacyAgreement);
    }

    public AgreementModel() {
    }

    protected AgreementModel(Parcel in) {
        this.userAgreement = in.readString();
        this.privacyAgreement = in.readString();
    }

    public static final Creator<AgreementModel> CREATOR = new Creator<AgreementModel>() {
        @Override
        public AgreementModel createFromParcel(Parcel source) {
            return new AgreementModel(source);
        }

        @Override
        public AgreementModel[] newArray(int size) {
            return new AgreementModel[size];
        }
    };
}
